package com.my.service;

import com.my.bean.User;
import com.my.dao.UserDao;

import java.util.List;

/**
 * @author: marshal
 * @date: 2023-05-15 15:28
 */
public class UserService {
    private UserDao userDao;

    public List<User> findUsers() {
        return userDao.findUserList();
    }

    // set 注入
    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }
}
